P+ - Donkey Kong - Action - 0x26 AttackDash
Entry Script
- Subroutine(0x80fb25b4)
- PreviousInterruptAddRequirement(OnGround)
- RemoveCallEveryFrame { thread_id: 9 }
- CallEveryFrame { thread_id: 9, script: 0x13110 }
- CreateInterrupt { interrupt_id: None, action: Fall, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement(InAir)
- BoolVariableSetFalse { variable: RandomAccessBool(EnableActionTransition) }
- if (not(ButtonPress value(0)))
- IfStatementOr (not((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual InternalConstantInt (0xc56))))
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: true, y_set: true })
- loop Infinite times:
- if (OnGround)
- SetEdgeSlide(StayOn)
- UnknownEvent { namespace: 0x8, code: 0x1, unk1: 0x0, arguments: [Value(0)] }
- SetAirGround(6)
- if (BoolIsTrue RandomAccessBool(EnableActionTransition))
- ChangeSubaction(AttackDash)
- else
- ChangeSubactionRestartFrame(AttackDash)
- BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
- else
- SetEdgeSlide(Airbourne)
- UnknownEvent { namespace: 0x8, code: 0x1, unk1: 0x0, arguments: [Value(4)] }
- LedgeGrabEnable(Disable)
- SetAirGround(0)
- if (BoolIsTrue RandomAccessBool(EnableActionTransition))
- ChangeSubaction(AttackDashAir)
- else
- ChangeSubactionRestartFrame(AttackDashAir)
- BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
- LoopRest
Exit Script (Common)